package com.bjpowernode.crm.service.impl;

import com.bjpowernode.crm.mapper.DeptMapper;
import com.bjpowernode.crm.pojo.Dept;
import com.bjpowernode.crm.service.DeptService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DeptServiceImpl implements DeptService {
    @Resource
    private DeptMapper deptMapper;

    @Override
    public int getCheckNo(String no) {
        return deptMapper.getCheckNo(no);
    }

    @Override
    public void addDept(Dept dept) {
        deptMapper.addDept(dept);
    }

    @Override
    public List<Dept> getAllDept() {
        return deptMapper.getAllDept();
    }

    @Override
    public Dept getDept(String id) {
        return deptMapper.getDept(id);
    }

    @Override
    public void editDept(Dept dept) {
        deptMapper.editDept(dept);
    }

    @Override
    public void delDept(String[] ids) {
        deptMapper.delDept(ids);
    }


}
